package com.hejing.List实现类源码分析;

import org.junit.Test;

import java.util.ArrayList;
import java.util.LinkedList;
import java.util.Vector;

/**
 * ClassName: ListTset
 * Package: com.hejing.List实现类源码分析
 * Description:
 *
 * @Author: HeJing
 * @Create: 2023-05-22 21:38
 * @Version: 1.0
 */
public class ListTest {
    /**
     * ArrayList 源码分析
     */
    @Test
    public void test01(){
        ArrayList<String> list = new ArrayList<>();
        list.add("AA");
        list.add("BB");
    }

    /**
     * Vector 源码分析
     */
    @Test
    public void test02(){
        Vector v = new Vector();
        v.add("AA");
        v.add("BB");
    }

    /**
     * LinkedList 源码分析
     */
    @Test
    public void test03(){
        LinkedList<String> list = new LinkedList<>();
        list.add("AA");
        list.add("BB");
    }

}


























